import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/msg_count_entity.dart';

MsgCountEntity $MsgCountEntityFromJson(Map<String, dynamic> json) {
	final MsgCountEntity msgCountEntity = MsgCountEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		msgCountEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		msgCountEntity.code = code;
	}
	final MsgCountData? data = jsonConvert.convert<MsgCountData>(json['data']);
	if (data != null) {
		msgCountEntity.data = data;
	}
	return msgCountEntity;
}

Map<String, dynamic> $MsgCountEntityToJson(MsgCountEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

MsgCountData $MsgCountDataFromJson(Map<String, dynamic> json) {
	final MsgCountData msgCountData = MsgCountData();
	final int? totalCount = jsonConvert.convert<int>(json['totalCount']);
	if (totalCount != null) {
		msgCountData.totalCount = totalCount;
	}
	final int? platformCount = jsonConvert.convert<int>(json['platformCount']);
	if (platformCount != null) {
		msgCountData.platformCount = platformCount;
	}
	final int? noticeCount = jsonConvert.convert<int>(json['noticeCount']);
	if (noticeCount != null) {
		msgCountData.noticeCount = noticeCount;
	}
	final int? interactiveCount = jsonConvert.convert<int>(json['interactiveCount']);
	if (interactiveCount != null) {
		msgCountData.interactiveCount = interactiveCount;
	}
	return msgCountData;
}

Map<String, dynamic> $MsgCountDataToJson(MsgCountData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['totalCount'] = entity.totalCount;
	data['platformCount'] = entity.platformCount;
	data['noticeCount'] = entity.noticeCount;
	data['interactiveCount'] = entity.interactiveCount;
	return data;
}